<template>
  <div class="home-banner">
    <XtxCarousel :sliders="$store.state.cate.bannerList" :autoPlay="true"/>
  </div>
</template>

<script>
// import { useStore } from 'vuex'
import XtxCarousel from '@/components/XtxSlider'
export default {
  name: 'HomeBanner',
  components: {
    XtxCarousel
  },
  setup () {
    // const store = useStore()
    // store.dispatch('cate/getBannerList')
    return {
    }
  }
}
</script>

<style scoped lang='less'>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
